Helpers.test.js ➔ ???   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 7
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A Helpers.test.js ➔ ... ➔ ??? 0 5 1
1
import React from 'react'
2
import { t } from '../../src/components/Helpers'
3
4
describe('to translate string correctly', () => {
5
    test('has changed to Foo baz baz', () => {
6
        expect(t('Foo {{bar}} baz', { 'bar': 'baz' })).toBe('Foo baz baz')
7
        let innerObj = Object.create({name: 'inherited'});
8
        t('Foo {{bar}} baz', innerObj)
9
    })
10
})